package designerMode.decorator;

/**
 * @author liuchaoqun
 * @date 2022/9/11
 * @Description
 */
public class Main {
    public static void main(String[] args) {
        Goods greenTea = new GreenTea();
        System.out.println(greenTea.getDescription() + ":" + greenTea.getPrice());
        Lemon lemon = new Lemon(greenTea);
        System.out.println(lemon.getDescription() + ":" + lemon.getPrice());

        Lemon lemon2 = new Lemon(lemon);
        System.out.println(lemon2.getDescription() + ":" + lemon2.getPrice());
    }
}
